<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <mycpn></mycpn>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
<script>
  // 1.创建组件构造器对象
  const cpnc = Vue.extend({
    template: `
    <div>
    <h2>标题1111111111</h2>
    <h2>内容1111111111</h2>
    <h2>内容2222222222</h2>
</div>
    `
  })
  Vue.component('mycpn',cpnc)
  const app = new Vue({
    el:"#app",
    data:{

    }
  })
</script>
</body>
</html>
